import java.util.List;

public class Course {

    private int id;
    private String courseName;
    private String place;
    private String time;
    private int teacherId;
    private List<Student> studentList;

    public Course(int id, String courseName, String place, String time, int teacherId) {
        this.id = id;
        this.courseName = courseName;
        this.place = place;
        this.time = time;
        this.teacherId = teacherId;
    }

    public Course(int id, String courseName, String place, String time, int teacherId, List<Student> studentList) {
        this.id = id;
        this.courseName = courseName;
        this.place = place;
        this.time = time;
        this.teacherId = teacherId;
        this.studentList = studentList;
    }

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", courseName='" + courseName + '\'' +
                ", place='" + place + '\'' +
                ", time='" + time + '\'' +
                ", teacherId=" + teacherId +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(int teacherId) {
        this.teacherId = teacherId;
    }

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }
}
